<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="nav" content="0" />
<meta name="acc" content="" />
<title>日常监督</title>
<script type="text/javascript">
	$(document).ready(function() {
		$("#addCheck").click(function() {
			ProjectInfoList();
		});
	});

	function ProjectInfoList() {
		$.window.prepare({
			dock : 'left' // change the dock direction: 'left', 'right', 'top', 'bottom'
		});
		$
				.window({
					title : "编制监督检查",
					showFooter : false,
					maximizable : false,
					bookmarkable : false,
					width : 600,
					height : 210,
					showRoundCorner : true,
					createRandomOffset : {
						x : 200,
						y : 150
					},
					modalOpacity : 0.5,
					showModal : true,
					resizable:false,
					closable : true,
					minimizable : false,
					url : appConfig.contPath
							+ "/quality/check!input.action?projectId=${projectId}&checkType=${param.checkType}"
				});
	}

	function close() {
		$.window.closeAll();
	}

	function saveCheck(checkId, projectId) {
		window.location.href = "${ctx}/quality/check!look.action?id=" + checkId
				+ "&projectId=" + projectId;
	}
</script>
</head>
<body>
	<div id="heading" class="check_result">
		<h6>${param.checkType == '1'?'日常':(param.checkType == '2' ? '专项':'巡视')
			}监督检查</h6>
	</div>
	<div id="message">
		<s:actionmessage theme="custom" cssClass="success" />
	</div>
	<form
		action="${ctx }/quality/check.action?projectId=${projectId}&filter_LIKES_checkType=${param.checkType}"
		method="post" id="mainForm" class="yform">
		<div id="filter">
			<ul>
				<li>发文编号：<input type="text" name="filter_LIKES_flowCode"
					value="${param['filter_LIKES_flowCode']}" />
				</li>
				<li>编制人：<input type="text" name="filter_LIKES_preparer"
					value="${param['filter_LIKES_preparer']}" />
				</li>
			</ul>
			<div class="type-button">
				<input type="button" value="查询" onclick="search();" class='search' />
			</div>
		</div>
		<div id="content">
			<table>
				<tr>
					<th><a id="createDate"
						href="javascript:sort('createDate','asc')">序号</a></th>
					<th>项目名称</th>
					<th>检查开始时间</th>
					<th>检查结束时间</th>
					<th>检查方式</th>
					<th>编制时间</th>
					<th>编制人</th>
					<th>操作</th>
				</tr>
				<c:forEach items="${page.result }" var="check" varStatus="status">
					<tr>
						<td>${page.first+status.index}</td>
						<td><pt:labels type="proj" single="true"
								argument1="${check.projectId }"></pt:labels>
						</td>
						<td><fmt:formatDate value="${check.checkDate }"
								pattern="yyyy-MM-dd" />
						</td>
						<td><fmt:formatDate value="${check.checkEndDate }"
								pattern="yyyy-MM-dd" />
						</td>
						<td><pt:code category="3012" code="${check.checkType }"></pt:code>
						</td>
						<td><fmt:formatDate value="${check.prepareDate }"
								pattern="yyyy-MM-dd" />
						</td>
						<td>${check.preparer }</td>
						<td><c:if test="${check.status == '99' }">

							</c:if> <c:if test="${check.status != '99' }">
								<a
									href="${ctx}/quality/check!look.action?id=${check.id}&projectId=${projectId}">编辑</a>
								<a
									href="${ctx}/quality/check!delete.action?id=${check.id}&projectId=${projectId}">删除</a>
								<a
									href="${ctx}/quality/check!judge.action?id=${check.id}&projectId=${projectId}">流程处理</a>
							</c:if></td>
					</tr>
				</c:forEach>
			</table>
		</div>
		<jsp:include page="/common/page.jsp" flush="true" />
		<div class="type-button">
			<input id="addCheck" type="button" class="add" value="新增" />
		</div>
	</form>
</body>
</html>